package com.bilibili.xzz.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("messageboard")
public class MessageBoard implements Serializable {

  private String id;
  private String name;
  private String mailbox;
  private String comment;
  private Integer isTop;
  private Integer isChecked;

  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField(fill = FieldFill.INSERT,value = "createTime")
  private Date createTime;

  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField(fill = FieldFill.INSERT_UPDATE,value = "updateTime")
  private Date updateTime;

  private Integer agree;
  private Integer disagree;

}
